package com.jxbeidou.system.setting.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jxbeidou.core.constents.DateFormatConstants;
import com.jxbeidou.core.validate.ModifyValidateGroup;
import com.jxbeidou.core.validate.SaveValidateGroup;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
* 允许访问URL表
*
* @author 杜晓祥 
* @since 1.0.0 2023-12-15
*/
@Data
public class IgnoreUrlVO implements Serializable {

	@Serial
	private static final long serialVersionUID = -4781801358296514753L;
	/**
	* 主键ID
	*/
	@NotNull(message = "主键不能为空", groups = {ModifyValidateGroup.class})
	private Long id;


	/**
	* URL说明
	*/
	@NotNull(message = "URI名称不能为空", groups = {ModifyValidateGroup.class, SaveValidateGroup.class})
	private String name;


	/**
	* URL
	*/
	@NotNull(message = "URL不能为空", groups = {ModifyValidateGroup.class, SaveValidateGroup.class})
	private String url;


	/**
	* 版本号
	*/
	private Integer version;


	/**
	* 删除标识  0：正常   1：已删除
	*/
	private Integer deleted;


	/**
	* 创建者
	*/
	private Long creator;


		/**
		* 创建时间
		*/
	@JsonFormat(pattern = DateFormatConstants.DATETIME_FORMAT)
	private Date createTime;


		/**
		* 更新者
		*/
	private Long updater;


		/**
		* 更新时间
		*/
	@JsonFormat(pattern = DateFormatConstants.DATETIME_FORMAT)
	private Date updateTime;


}